package com.pactera.mavenweb.service;

import java.util.List;

import com.pactera.mavenweb.entity.User;

/**
 * UserService
 * @author SteveXIE
 *
 */
public interface UserService {
	/**
	 * 批量保存
	 * @param UserDetails
	 * @return
	 */
	int saveUsers(List<User> users);
	
	public User getUser(int id);
	
	public User getUserByName(String username);
	
	public User getUserByNameWithAuth(String name);
	
	public List<User> getAllUser();
	
	public void addUser(User user);
	
	public void addUserSimpleRoles(User user);
	
	public boolean delUser(int id);
	
	public void updateUser(User user);
}